package categoria;

import java.util.Collection;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import anuncio.Anuncio;

@Entity
@SequenceGenerator(name="seq_cat", sequenceName="cat_seq")
@Table (name= "categoria")
public class Categoria {

		@Id
		@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_cat")
		@Column(name = "codigo")
		private int Codigo;
		
		@Column(name = "desc_categoria")
		private String desc_categoria ;
		
		
		
		//----------get-e-set----------\\
		public int getCodigo() {
			return Codigo;
		}
		public void setCodigo(int codigo) {
			Codigo = codigo;
		}
		public String getDesc_categoria() {
			return desc_categoria;
		}
		public void setDesc_categoria(String desc_categoria) {
			this.desc_categoria = desc_categoria;
		}
		
		
		
}
